package com.gec.it.controller;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class MyControllerAdvice {
    @ExceptionHandler(UnauthorizedException.class)
    public String ShiroException(Exception e){
        return "err_limit";
    }

}
